<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
@foreach($config as $v)
<meta name="description" content="{{ $v->description }}" />
<meta name="keywords" content="{{ $v->keys }}" />
<title>{{ $v->title }}</title>
@endforeach
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="{{asset('css/base.css')}}" rel="stylesheet" type="text/css"/>
<link href="{{asset('css/order.css')}}" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="{{asset('js/jquery-1.2.6.pack.js')}}"></script>
<script language="javascript" src="{{asset('js/suning_btn.js')}}"></script>
</head>
<body>
    <form action="" method="post" name="myform">
        <input type="hidden" name="_token" value="{{csrf_token()}}">
        <input type="hidden" name="_method" value="DELETE">
    </form>
<div class="o_h container">
    @foreach($config as $v)
	<h1 class="f_l oh_logo"><a href="index.html"><img src="{{ asset('uploads').'/'.$v->logo }}" alt="麦路客商城" /></a></h1><!--oh_logo end-->
    @endforeach
	<div class="f_r oh_mian">
		<div class="oh_dh">
			<div class="f_r l_bg"></div>
			<a href="index.html">麦路客首页</a><span>|</span><a href="my-mesaer.html">我的麦路客</a><span>|</span><a href="help/index.html">帮助中心</a></div>
			<div class="f_r r_bg"></div>
		</div><!--oh_dh end-->

		<div class="blank20"></div>

		<div class="flow_step" style="margin-top:-50px;">
			<ul>
				<li class="step_06"></li>
				<li class="step_04">3.成功提交订单</li>
				<li class="step_05"></li>
				<li class="step_04">2.填写核对订单信息</li>
				<li class="step_03"></li>
				<li class="step_02">1.我的购物车</li>
				<li class="step_01"></li>
			</ul>
		</div><!--flow_step end-->
	</div><!--oh_mian end-->

	<div class="clear"></div>

</div><!--o_h end-->

<div class="cat_content container">
	<div class="blank10"></div>
	<div class="cat_title">
		<h2 class="f_l"><img src="{{asset('images/cat.gif')}}" title="购物车" /></h2>
		<div class="f_r"><strong class="red">温馨提示</strong>：请认真核对信息以免误操作。</div>
	</div><!--cat_title end-->
	<div class="cat_list">
    <form action="{{url('home1/cartt')}}" method="post">
        <input type="hidden" name="_token" value="{{csrf_token()}}">
        <table cellpadding="0" cellspacing="0" border="0">
			<thead>
				<tr>
					<th width="10px">&nbsp;</th>
					<th colspan="2">商品名称</th>
					<th>尺码</th>
					<th>单价</th>
					<th>数量</th>
					<th colspan="2">小计</th>
					<th>操作</th>
					<th width="10px">&nbsp;</th>
				</tr>
			</thead>
			<tbody>
                @if($count==0)
                <tr>
					<td colspan="10">
						<p class="no_cat">您的购物车还是空的，赶紧行动吧！您可以：<br />马上去 <a href="{{url('/home')}}" class="red">挑选商品</a></p>
					</td>
				</tr>
                @endif
                <span style="display:none;">{{$num=1}}</span>
                @foreach($data as $v)
                <tr>
                    <td style="border:none;">&nbsp;</td>
                    <td colspan="2"><a href="#"><img src="{{asset('images/cat.jpg')}}" class="p_img" /></a><a href="#">{{$v->goodname}}</a></td>
                    <td>{{$v->size}}</td>
                    <td><b>&yen;</b><span id="price_item_1">{{$v->price}}</span></td>
                    <td>
                        <div class="text-number">
                            <a class="reduce" onclick="setAmount.reduce('#qty_item_{{$num}}')" href="javascript:void(0)">-</a>
                            <input type="text" name="qty_item_{{$num}}" value="1" id="qty_item_{{$num}}" onkeyup="setAmount.modify('#qty_item_{{$num}}')" class="text" />
                            <a class="add" onclick="setAmount.add('#qty_item_{{$num}}')" href="javascript:void(0)">+</a>
                        </div>
                    </td>
                    <td colspan="2"><span id="total_item_{{$num}}">0</span></td>
                    <td><a href="javascript:doDel({{$v->id}})" class="red">删除</a></td>
                    <td style="border:none;">&nbsp;</td>
                </tr>
                <span style="display:none;">{{$num++}}</span>
                @endforeach
                <script type="text/javascript">
                function doDel(id)
                {
                   if(confirm("确定要删除吗？")){
                       var form = document.myform;
                       form.action = "cart/"+id;
                       form.submit();
                   }
                }
                </script>
            </tbody>
			<tfoot>
				<tr>
					<td style="border:none;">&nbsp;</td>
					<td colspan="10">
						<table cellpadding="0" cellspacing="0" border="0">
							<td>产品数量总计：<span class="red">4件</span></td>
							<td align="right">产品金额总计（不含运费）：<span class="red"><span id="cashTotal">129.00</span><input type="text" name="cash-total" id="cash-total" value="" style="display:none;" /></span></td>
						</table>
					</td>
					<td style="border:none;">&nbsp;</td>
				</tr>
				<tr>
					<td style="border:none;">&nbsp;</td>
					<td colspan="10" style="border:none;">
						<table cellpadding="0" cellspacing="0" border="0">
							<td width="110px"><a href="/home"><img alt="继续购物" src="{{asset('images/jx_pay.gif')}}" /></a></td>
							<td><a href="/home1/deleteall"><img alt="清空购物车" src="{{asset('images/delete_pay.gif')}}" /></a></td>
							<td></td>
                            @if($count>0)
							<td align="right"><input type="image" src="{{asset('images/go_pay.gif')}}"></td>
                            @endif
						</table>
					</td>
					<td style="border:none;">&nbsp;</td>
				</tr>
			</tfoot>
		</table>
    </form>
	</div><!--cat_list end-->
	<div class="line mb-10"></div>
</div><!--cat_content end-->

<div class="footer container">
	<div class="service">
		<div class="cat_bg"></div>
		<div class="help_list clearfix">
			<dl>
				<dt>新手指南</dt>
				<dd><a href="help/index.html" target="_blank"><span>购物流程</span></a></dd>
				<dd><a href="help/account.html" target="_blank"><span>我的麦路客</span></a></dd>
				<dd><a href="help/common.html" target="_blank"><span>常见问题</span></a></dd>
				<dd><a href="register.html" target="_blank"><span>注册用户</span></a></dd>
				<dd><a href="forgot-password.html" target="_blank"><span>找回密码</span></a></dd>
			</dl>
			<dl>
				<dt>订单问题</dt>
				<dd><a href="help/order-status.html" target="_blank">订单状态</a></dd>
				<dd><a href="help/cancel-order.html" target="_blank">取消订单</a></dd>
				<dd><a href="help/not-order.html" target="_blank">未达订单</a></dd>
			</dl>
			<dl>
				<dt>会员积分</dt>
				<dd><a href="help/integral-rules.html" target="_blank">积分规则</a></dd>
				<dd><a href="help/integral.html" target="_blank">积分问题</a></dd>
				<dd><a href="help/exchange-integral.html" target="_blank">积分兑换</a></dd>
			</dl>
			<dl>
				<dt>如何付款/退款</dt>
				<dd><a href="help/payment.html" target="_blank">支付方式</a></dd>
				<dd><a href="help/wait-pay.html" target="_blank">支付等待</a></dd>
				<dd><a href="help/pay-issue.html" target="_blank">支付问题</a></dd>
				<dd><a href="help/refund.html" target="_blank">办理退款</a></dd>
				<dd><a href="help/invoice-system.html" target="_blank">发票制度</a></dd>
			</dl>
			<dl>
				<dt>配送和收费</dt>
				<dd><a href="help/time-range.html" target="_blank">配送时间</a></dd>
				<dd><a href="help/delivery-time.html" target="_blank">送达时间</a></dd>
				<dd><a href="help/inspection-sign.html" target="_blank">验货与签收</a></dd>
				<dd><a href="help/express.html" target="_blank">快递配送和收费</a></dd>
				<dd><a href="help/ems.html" target="_blank">EMS配送和收费</a></dd>
			</dl>
			<dl>
				<dt>售后服务</dt>
				<dd><a href="help/policy.html" target="_blank">退换货政策</a></dd>
				<dd><a href="help/apply-goods.html" target="_blank">如何办理退换货</a></dd>
			</dl>
		</div>
	</div><!--service end-->
	<div class="copyright">
		<a href="help/about.html" target="_blank">关于麦路客</a><span>|</span><a href="help/contact.html" target="_blank">联系麦路客</a><span>|</span><a href="help/job.html" target="_blank">加入麦路客</a><span>|</span><a href="sort.html" target="_blank">网站地图</a><span>|</span><a href="help/complainting.html" target="_blank">投诉与建议</a><span>|</span><a href="help/links.html" target="_blank">友情链接</a><br />
		Copyright&nbsp;&nbsp;©&nbsp;&nbsp;2009-2011&nbsp;&nbsp;<a title="麦路客商城" href="http://www.mailuke.com/">www.mailuke.com</a>&nbsp;&nbsp;麦路客商城版权所有<span>|</span><a href="http://www.miibeian.gov.cn/" target="_blank">沪ICP备10031526号</a><br />
		<a href="#" target="_blank"><img src="images/beian.gif" width="128" height="47" alt="经营性网站备案中心" /></a><a href="#" target="_blank"><img src="images/trustA.gif" width="119" height="47" alt="A级-信用企业" /></a><a href="#" target="_blank"><img src="images/alipay.gif" width="123" height="40" alt="支付宝-特约商家" /></a>
	</div><!--copyright end-->
</div><!--footer end-->

<script type="text/javascript" src="{{asset('js/calculation.js')}}"></script>
</body>
</html>
